import requests

url = 'https://www.baidu.com/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36',
    'Cookie': 'BIDUPSID=368CC62E6099F3BCBA3B4F44CBB952A1; PSTM=1603888758; BAIDUID=368CC62E6099F3BC83159D1A1ED4EEF2:FG=1; BD_UPN=12314753; BDUSS=d1Z3VuWE1ybk1SOUtMRDNKZTJzUVo1T3pEaDRPdlhTcnNmLTBWbU9TMkpVY2RmSVFBQUFBJCQAAAAAAAAAAAEAAABMiO-rwV~QodS2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAInEn1-JxJ9fNX; BDUSS_BFESS=d1Z3VuWE1ybk1SOUtMRDNKZTJzUVo1T3pEaDRPdlhTcnNmLTBWbU9TMkpVY2RmSVFBQUFBJCQAAAAAAAAAAAEAAABMiO-rwV~QodS2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAInEn1-JxJ9fNX; yjs_js_security_passport=53acdc990a3c9e79c4f02d8c228c5bc3b25a8d4c_1604309347_js; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; H_PS_645EC=24601GHrE7H2XfPxqhPTfJrHQRmXuO5XNUl8oM9Y4h901bDKVFmPMsMXjEhc2YmIh9Mg; BD_HOME=1; H_PS_PSSID=32810_1446_32840_32948_31660_32706_7517_32961; sugstore=1'
}

r = requests.get(url=url, headers=headers)

print(r.text)
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36',
    'Cookie': 'BIDUPSID=368CC62E6099F3BCBA3B4F44CBB952A1; PSTM=1603888758; BAIDUID=368CC62E6099F3BC83159D1A1ED4EEF2:FG=1; BD_UPN=12314753; BDUSS=d1Z3VuWE1ybk1SOUtMRDNKZTJzUVo1T3pEaDRPdlhTcnNmLTBWbU9TMkpVY2RmSVFBQUFBJCQAAAAAAAAAAAEAAABMiO-rwV~QodS2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAInEn1-JxJ9fNX; BDUSS_BFESS=d1Z3VuWE1ybk1SOUtMRDNKZTJzUVo1T3pEaDRPdlhTcnNmLTBWbU9TMkpVY2RmSVFBQUFBJCQAAAAAAAAAAAEAAABMiO-rwV~QodS2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAInEn1-JxJ9fNX; yjs_js_security_passport=53acdc990a3c9e79c4f02d8c228c5bc3b25a8d4c_1604309347_js; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; H_PS_645EC=24601GHrE7H2XfPxqhPTfJrHQRmXuO5XNUl8oM9Y4h901bDKVFmPMsMXjEhc2YmIh9Mg; BD_HOME=1; H_PS_PSSID=32810_1446_32840_32948_31660_32706_7517_32961; sugstore=1'
}

r = requests.get(url=url, headers=headers)
print('=================')
print(r.text)